from rest_framework.viewsets import ModelViewSet
from users.models import User
from .serializers import UserSerializer
from meiduo_admin.utils import MyNumbPage


class AdminViewSet(ModelViewSet):
    queryset = User.objects.order_by('id').filter(is_staff=True, is_superuser=True).all()
    serializer_class = UserSerializer
    pagination_class = MyNumbPage
